package e.odbo.data.sample.attach;

import e.odbo.data.model.Column;
import e.odbo.data.model.ColumnFlag;
import e.odbo.data.model.ColumnType;
import e.odbo.data.model.Table;
import e.odbo.data.model.smaple.PK;
import e.odbo.data.model.smaple.TimeLogAble;

public class Attach_Table extends Table {

    public static  String NAME="odbo_attach";

    public Attach_Table() {
        super(NAME);
        this.implement(PK.PK_UUID, TimeLogAble.Instance);
        this.addColumn(
                Column.c("owner", ColumnType.VARCHAR(255),"所有者").NotNull(),
                Column.c("attachType", ColumnType.INT,"类别").NotNull(),
                Column.c("attach", ColumnType.BLOB,"内容").NotNull(),
                Column.c("memo",ColumnType.VARCHAR(300),"说明"));
        this.comment("附件");
    }
}
